package com.ltu.model.request.account;

import com.ltu.model.request.CommonRequest;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Data
@EqualsAndHashCode(callSuper=true)
public class RoleCommonReq extends CommonRequest {

    @ApiModelProperty("空则为新增，非空为修改")
    private String id;

    /*角色名*/
    @NotEmpty(message="角色名称不可以为空")
    private String roleName;

    /*备注*/
    private String remark;

    /*是否启用*/
    @NotNull(message="是否启用不可以为空")
    private Integer enable;

    @ApiModelProperty("权限等级：-1超管、 1全局、2部门管理、3普通")
    private Integer authorityLevel;

}
